package controller

import (
	"context"
	"xr-game-server/core/httpserver"
	"xr-game-server/dto/roledto"
	"xr-game-server/module/role"
)

type RoleCMs struct {
}

func initRoleCMS() {
	httpserver.RegCMSCustomizeRes(RoleUrl, &RoleCMs{})
}

func (receiver *RoleCMs) PageRole(ctx context.Context, req *roledto.PageRoleReq) (res *httpserver.CMSQueryResp, err error) {
	return role.PageRole(req)
}
